<%@ taglib prefix="ec" uri="http://www.extremecomponents.org" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/pages/inc/taglibs.jsp" %>
<%@ include file="/WEB-INF/pages/inc/nocache.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>订单查询</title>
    <%@ include file="/WEB-INF/pages/inc/meta.jsp" %>
    <link href="${ctx}/themes/default/css/showdialog.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/themes/default/css/extremecomponents.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/themes/default/css/admin.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/themes/default/css/frame.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/themes/default/css/main.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/themes/default/css/message/messages.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/themes/default/css/common/common.css" rel="stylesheet" type="text/css"/>

    <%--<meta name="decorator" content="${theme}.query">--%>
    <%--<meta name="menuname" content="index"/>--%>
    <style type="text/css">
      input .time_select_radio{width:15px}
    </style>
</head>
<body>
<div id="main">
    <div class="content">
        <h2>订单查询</h2>

        <form action="${ctx}/order/list.aspx" name="orderForm" method="post">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="bgsearch">
                <tr>
                    <td>订单号;</td>
                    <td><input type="text" name="orderNo" value="${orderNo}"/></td>
                    <td>用户名;</td>
                    <td><input type="text" name="userName" value="${userName}"/></td>
                    <td>收获人手机号;</td>
                    <td><input type="text" name="mobile" value="${mobile}"/></td>
                    <td>收货人姓名;</td>
                    <td><input type="text" name="consignee" value="${consignee}"/></td>

                </tr>
                <tr>
                    <td>收货人地址;</td>
                    <td><input type="text" name="consigneeAddress" value="${consigneeAddress}"/></td>
                    <td>物流单号;</td>
                    <td><input type="text" name="logisticsOrderId" value="${logisticsOrderId}"/></td>

                </tr>

                <tr>

                      <td>开始时间：</td>
                      <td>  <input name="queryBegin" id="queryBegin" class="Wdate" type="text" size="25"
                               value="${queryBegin}"
                               readonly="readonly"
                               onFocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd 00:00:00',maxDate:'#F{$dp.$D(\'queryEnd\')}'})"
                               maxlength="25"></td>
                    <td>结束时间：</td>
                    <td>
                        <input name="queryEnd" id="queryEnd" class="Wdate" type="text" size="25"
                               value="${queryEnd}"
                               readonly="readonly"
                               onFocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd 00:00:00',minDate:'#F{$dp.$D(\'queryBegin\')}',maxDate:'%y-%M-%d'})"
                               maxlength="25"/>
                    </td>
                     <td colspan="4">&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="6">
                        <input type="radio" name="queryTimeTypeId" value="3"  style="width:15px;height:13px" <c:if test="${queryTimeTypeId eq '3'}"> checked="checked" </c:if> >订单创建时间
                        <input type="radio" name="queryTimeTypeId" value="1"  style="width:15px;height:13px" <c:if test="${queryTimeTypeId eq '1'}"> checked="checked" </c:if> > 租赁开始时间
                        <input type="radio" name="queryTimeTypeId" value="2"  style="width:15px;height:13px" <c:if test="${queryTimeTypeId eq '2'}"> checked="checked" </c:if> >租赁结束时间 
                        <input type="radio" name="queryTimeTypeId" value="4"  style="width:15px;height:13px" <c:if test="${queryTimeTypeId eq '4'}"> checked="checked" </c:if>>支付时间
                        <input type="radio" name="queryTimeTypeId" value="5"  style="width:15px;height:13px" <c:if test="${queryTimeTypeId eq '5'}"> checked="checked" </c:if>>发货时间
                        <input type="radio" name="queryTimeTypeId" value="6"  style="width:15px;height:13px" <c:if test="${queryTimeTypeId eq '6'}"> checked="checked" </c:if>>还货时间
                        <input type="radio" name="queryTimeTypeId" value="7"  style="width:15px;height:13px" <c:if test="${queryTimeTypeId eq '7'}"> checked="checked" </c:if>>退押金时间
                        <input type="radio" name="queryTimeTypeId" value="8"  style="width:15px;height:13px" <c:if test="${queryTimeTypeId eq '8'}"> checked="checked" </c:if>>计费起始日期

                     </td>
                    <td colspan="2">
                        <div class="buttonPosition">
                          <input name="Submit" type="submit" class="bgbtn" style="width:50px;" value="查 询"/>
                        </div>
                    </td>
                 </tr>

            </table>
            <%--<div id="text_sty"><span style="color:orange;">开始时间和结束时间不能为空</span></div>--%>
            <%--</div>--%>
            <%--<hr>--%>
            <div class="tablescrolll">
                <ec:table items="items" var="item"
                          action="${ctx}/order/list"
                          sortable="false"
                          filterable="false"
                          autoIncludeParameters="false"
                          imagePath="${ctx}/themes/default/css/extremecomponents/images/*.gif"
                          retrieveRowsCallback="org.extremecomponents.table.callback.LimitCallback"
                          filterRowsCallback="org.extremecomponents.table.callback.LimitCallback"
                          sortRowsCallback="org.extremecomponents.table.callback.LimitCallback"
                          form="listForm"
                          title="订单管理列表"
                          styleClass="backCard"
                        >
                    <ec:row>
                        <ec:column property="rowcount" cell="rowCount" title="序号" filterable="false"/>
                        <ec:column property="orderNo" title="订单号" alias="orderNo"
                                   filterable="false"/> 

                        <ec:column property="createTime.time" cell="date" format="yyyy-MM-dd" title="创建时间"
                                   alias="createTime" filterable="false"/>
                        <ec:column property="leaveBeginTime.time" cell="date" format="yyyy-MM-dd" title="租赁开始时间"
                                   alias="leaveBeginTime" filterable="false"/>

                        <ec:column property="leaveEndTime.time" cell="date" format="yyyy-MM-dd" title="租赁结束时间"
                                   alias="leaveEndTime" filterable="false"/>
                        <%--<ec:column property="payTime.time" cell="date" format="yyyy-MM-dd" title="支付时间"--%>
                                   <%--alias="payTime" filterable="false"/>--%>

                          <ec:column property="orderNo" title="订单号" alias="orderNo" width="80px"
                                   filterable="false"/>
                        <%--<ec:column property="price" title="单价/元" alias="price" width="80px"--%>
                                   <%--filterable="false"/>--%>

                        <%--<ec:column property="quantity" title="数量" alias="quantity"--%>
                                   <%--filterable="false"/>--%>
                        <ec:column property="user.userName" title="用户名" alias="user.userName"
                                   filterable="false"/> 
                        <ec:column property="mobile" title="收货人手机号" alias="mobile"
                                   filterable="false" />
                        <ec:column property="logisticsOrderId" title="物流单号" alias="logisticsOrderId"
                                   filterable="false" />
                        <ec:column property="shippingTime.time" cell="date" format="yyyy-MM-dd" title="发货时间"
                                   alias="shippingTime" filterable="false"/>
                        <ec:column property="consigneeAddress"  title="目的地" alias="consigneeAddress"
                                   filterable="false"/>
                        <ec:column property="status" title="订单状态" alias="status" filterable="false"/> 
                        <ec:column property="null" title="操作" filterable="false" alias="null">
                                <a href="javascript:" onclick="BlockWidth('${ctx}/order/view.aspx?method=view&id=${item.id}','订单详情');">查看</a>
                               <a href="javascript:"  onclick="BlockWidth('${ctx}/order/editView.aspx?method=edit&id=${item.id}','订单修改');">修改</a>
                            <a href="javascript:"  onclick="BlockWidth('${ctx}/order/outStockView.aspx?method=outStock&id=${item.id}','订单修改');">销售出库</a>

                        </ec:column>
                    </ec:row>
                </ec:table>
            </div>
        </form>
        <br/>
    </div>
</div>

</body>
<script type="text/javascript" src="/js/funkyUI/jquery.funkyUI.js"></script>
<script type="text/javascript" src="/js/My97DatePickerBeta/WdatePicker.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/js/enterprise.js"></script>
<script type="text/javascript" src="/js/divWidth.js"></script>
<script type="text/javascript" src="/js/block.js"></script>
<script type="text/javascript" src="/js/lhgdialog/lhgcore.js"></script>
<script type="text/javascript" src="/js/lhgdialog/lhgdialog.js"></script>
</html>